package com.example.homework1.entity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Qualifier;

public class People {
    private HomeMethod homeMethod;
    @Autowired
    @Qualifier("byBus")
    public void setMethod(HomeMethod homeMethod){
        this.homeMethod=homeMethod;
    }
    public void Method(){
        homeMethod.method();
    }
}
